package common.scheduler.impl;

import common.DiscussionSentence;
import common.Locutor;
import common.scheduler.IChatActions;

public class ChatActionsImpl implements IChatActions {

	
	private ChatActionsImpl _instance = new ChatActionsImpl();
	
	
	public ChatActionsImpl get_instance() {
		return _instance;
	}

	@Override
	public void openChatWith(Locutor locutor) {
		locutor.getParentSet().getConnection().createChat(locutor.getId());

	}

	@Override
	public void sendDialogMessage(DiscussionSentence sentence, Locutor locutor) {
		locutor.getParentSet().getConnection().sendMessage(locutor.getId(),sentence);

	}

	@Override
	public void sendWallMessage(DiscussionSentence senctence, Locutor locutor) {
		
	}

}
